package com.reader.api.thirdplatform;

import com.reader.api.exception.urlauthentication.UrlAuthenticationException;

/**
 * url鉴权，具体参考文档https://helpcdn.aliyun.com/document_detail/65106.html
 *
 * @author liujianqing
 * @date 2018/10/24
 */
public interface AliUrlAuthenticationService {
    /**
     * 给指定的url转换为鉴权的url.
     *
     * @param url 待鉴权url
     * @exception UrlAuthenticationException 使用方请catch UrlAuthenticationException
     * @return 鉴权后的url
     */
    public String getAuthenticationUrl(String url) throws UrlAuthenticationException;
}
